#ifndef _OBJECT_
#define _OBJECT_

#include <Box2D/box2d.h>
#include <utility>
#include <QImage>
#include <QPainter>


class Object
{
public:
    Object();
    virtual void Draw( QPainter& _painter );
    void AddToWorld( b2World& _world );
    void SetImage( const QString& _imageFileName );
private:
    float GetX() const;
    float GetY() const;
    b2BodyDef m_BodyDef;
    b2Body* m_Body;
    std::auto_ptr<QImage> m_Image;
};


#endif